package com.msb.serviceorder.remote;

import com.msb.internalcommon.dto.Car;
import com.msb.internalcommon.dto.ResponseResult;
import com.msb.internalcommon.reponese.OrderDriverResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Auther: jiudianliu
 * @Date: 2023/7/24 - 07 - 24 - 13:41
 * @Description: com.msb.serviceorder.remote
 * @version: 1.0
 *
 */
@FeignClient("service-driver-user")
public interface ServiceDriverUserClient {

    @RequestMapping(method = RequestMethod.POST , value = "/city-driver/id-available-driver")
    public ResponseResult<Boolean> isAvailableDriver(@RequestParam String cityCode);


    @GetMapping("/get-available-driver/{carId}")
    public ResponseResult<OrderDriverResponse> getAvailableDriver(@PathVariable("carId") Long carId);


    @GetMapping("/car")
    public ResponseResult<Car> getCarById(@RequestParam Long carId);
}
